package com.gill.exp.common.exception;


import com.gill.exp.common.enums.base.BaseEnum;
import com.gill.exp.common.exception.base.BaseException;

/**
 * @program: mikasa
 * @description: 基础异常
 * @author: Gill
 * @create: 2021-03-31 13:11
 **/
public class BusinessException extends BaseException {
    private static final long serialVersionUID = 1L;

    public BusinessException(BaseEnum expEnum, String msg, Object[] args) {
        super(expEnum.getCode(),msg,args);
    }

    public BusinessException(BaseEnum expEnum, String msg) {
        super(expEnum.getCode(),msg);
    }

    public BusinessException(BaseEnum expEnum) {
        super(expEnum.getCode(),expEnum.getMessage());
    }
}
